package com.enzoism.mvc.config;

import com.enzoism.mvc.model.TestUser;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Configuration
@Component
public class AppConfig {
    @Bean("testUser2")
    TestUser testUser2() {
        return new TestUser("testUser2");
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
